package o;

import com.google.gson.JsonIOException;
import java.io.IOException;

public abstract class ato<T> {
    public abstract void ˎ(aux o_aux, T t) throws IOException;

    public abstract T ˏ(auy o_auy) throws IOException;

    public final ato<T> ˋ() {
        return new ato<T>(this) {
            final /* synthetic */ ato ˏ;

            {
                this.ˏ = r1;
            }

            public void ˎ(aux o_aux, T t) throws IOException {
                if (t == null) {
                    o_aux.ᐝ();
                } else {
                    this.ˏ.ˎ(o_aux, t);
                }
            }

            public T ˏ(auy o_auy) throws IOException {
                if (o_auy.ʻ() != auz.NULL) {
                    return this.ˏ.ˏ(o_auy);
                }
                o_auy.ॱॱ();
                return null;
            }
        };
    }

    public final ath ॱ(T t) {
        try {
            aux o_aul = new aul();
            ˎ(o_aul, t);
            return o_aul.ˋ();
        } catch (Throwable e) {
            throw new JsonIOException(e);
        }
    }
}
